
package com.gxa.weixing.pc.service.impl;

import com.gxa.weixing.core.common.ExceptionCode;
import com.gxa.weixing.core.exception.BusinessException;
import com.gxa.weixing.core.pojo.Logistics;
import com.gxa.weixing.core.service.impl.BaseServiceImpl;
import com.gxa.weixing.pc.service.LogisticsService;
import org.springframework.stereotype.Service;

/**
 * @author yang
 * @date 2022/1/7 14:21
 */
@Service
public class LogisticsServiceImpl extends BaseServiceImpl<Logistics> implements LogisticsService {


    @Override
    public void updateLogistics(Logistics logistics) throws Exception {

        Integer integer = updateById(logistics);
        if (integer < 1) {
            throw new BusinessException(ExceptionCode.PARAM_ERROR);
        }

    }

}







































